<script>
export default {
  props: {
    data: Object
  },
  render(ce) {
    let children = [];
    let pProps = {
      props: this.data.props || {},
      domProps: this.data.domProps || {}
    };

    if (this.data.children) {
      children = this.data.children.map(v => {
        if (typeof v == "string") return v;
        let props = v.props ? { props: v.props } : {};
        let children = v.children ? v.children : [];
        return ce(v.code, props, children);
      });
    }
    return ce(this.data.code, pProps, children);
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {}
};
</script>
<style lang="scss" scoped>
</style>

